<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="menu" content="mainMenu"/>
<meta name="nav" content="0"/>
<meta name="acc" content="2"/>
<title>单位管理</title>
</head>
<body>
	<form id="mainForm" action="${ctx }/account/external_organization.action" method="post" class="yform">
		<input type="hidden" name="page.pageNo" id="pageNo"
			value="${page.pageNo}" /> <input type="hidden" name="page.orderBy"
			id="orderBy" value="${page.orderBy}" /> <input type="hidden"
			name="page.order" id="order" value="${page.order}" />
		<div id="message">
			<s:actionmessage theme="custom" cssClass="success" />
		</div>
		<div id="filter">
<ul>
<li>单位名称:<input type="text" name="filter_LIKES_orgName" value="${param['filter_LIKES_orgName']}" size="9" /></li>
<li>主管部门:<input type="text" name="filter_LIKES_burderDep"  value="${param['filter_LIKES_burderDep'] }" size="9" /></li>
</ul>	
<div class="type-button"><input type="button" value="查询" onclick="search();" class="search" /></div>		    
		</div>
		<div id="content">
			<table id="contentTable">
				<tr>
					<th><a href="javascript:sort('createDate','asc')">序号</a></th>
					<th><a href="javascript:sort('orgName','asc')">单位名称</a>
					</th>
					<th><a href="javascript:sort('burderDep','asc')">主管部门</a>
					</th>
					<th><a href="javascript:sort('orgTelephone','asc')">单位电话</a>
					</th>
					<th>成立时间</th>
					<th>操作</th>
				</tr>
				<c:forEach items="${page.result}" var="organization" varStatus="var">
					<tr>
						<td>${page.first+var.index }</td>
						<td id="orgName${var.count}">${organization.orgName}</td>
						<td>${organization.burderDep}&nbsp;</td>
						<td>${organization.orgTelephone}&nbsp;</td>
						<td>${organization.finishDate }</td>
						<td>&nbsp;
							<security:authorize ifAnyGranted="ROLE_浏览用户">
								<security:authorize ifNotGranted="ROLE_修改用户">
									<a href="organization!input.action?id=${organization.id}">查看</a>&nbsp;
								</security:authorize>
							</security:authorize>

								<a href="external_organization!input.action?id=${organization.id}">修改</a>&nbsp;
								<a href="external_organization!delete.action?id=${organization.id}" onclick="return confirmDelete();">删除</a>
						</td>
					</tr>
				</c:forEach>
			</table>
		</div>

		<div>
			第${page.pageNo}页, 共${page.totalPages}页 <a
				href="javascript:jumpPage(1)">首页</a>
			<s:if test="page.hasPre">
				<a href="javascript:jumpPage(${page.prePage})">上一页</a>
			</s:if>
			<s:if test="page.hasNext">
				<a href="javascript:jumpPage(${page.nextPage})">下一页</a>
			</s:if>
			<a href="javascript:jumpPage(${page.totalPages})">末页</a>
			
		</div>
	</form>

</body>
</html>